﻿@{
    ViewBag.Title = "项目时间轴";
    Layout = "~/Views/Shared/_LayoutFore.cshtml";
}

@model IEnumerable<LY.Entity.R_ProjectDatelinetree>
<link href="~/Scripts/laypage/skin/laypage.css" rel="stylesheet" />

<div class="RightContrent">
    <div style="margin-left: 50px; margin-right: 50px;">
        <div class="tab-content">
            <div class="line10"></div>
            <div class="line10"></div>
            <div class="tab_title">@ViewBag.Title</div>
            <div class="tab-content">
                <div style="width: 16px; height: 12px; float: left;">
                    <img src="~/Content/Images/leftarraw.png" />
                </div>
            </div>
            <div class="tab-content_border">
                <div class="u-center">
                    <div class="menu-list" align="left">
                        <a href="/UserProject/MyProject" class="btn" style="color: white">《&nbsp;返回</a>
                        <a class="btn" style="width: 35px" href="@Url.Action("ProjectDatelinetreeEdit", "UserProject", new { Pid = Request["pid"] })">新增</a>
                    </div>
                    <div class="line10"></div>
                    <div id="gridlist" class="xjgrid">
                        <div class="grid-body">
                            <div class="grid-body-inner">
                                <table id="gridlist_detail">
                                    <thead>
                                        <tr class="thead">

                                            <td style="width: 45%" class="sortable">
                                                <div style="text-align: left;">名称</div>
                                            </td>
                                            <td style="width: 25%" class="sortable">
                                                <div style="text-align: left;">跳转地址</div>
                                            </td>
                                            <td style="width: 20%">
                                                <div style="text-align: left;">时间</div>
                                            </td>
                                            <td style="width: 20%">
                                                <div style="text-align: left;">操作</div>
                                            </td>
                                        </tr>
                                    </thead>
                                    <tbody class="DataList">
                                        @if (null != ViewData.Model)
                                        {
                                            foreach (var item in ViewData.Model)
                                            {
                                            <tr id="gridlist_tr_0" class="">

                                                <td class="td-left">
                                                    <div class="clearfix">
                                                        <a class="b-l-name">@item.Name </a>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="clearfix">
                                                        <a class="b-l-name">@item.Url </a>

                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="clearfix">
                                                        <a class="b-l-name">@DateTime.Parse(item.AddTime.ToString()).ToString("yyyy-MM-dd") </a>
                                                    </div>
                                                </td>
                                                <td class="BianJi">
                                                    <div class="clearfix">
                                                        <a class="b-l-name" href="@Url.Action("ProjectDatelinetreeEdit", new { id = item.Id, pid = item.ProjectId })" >编辑</a>

                                                    </div>
                                                </td>
                                            </tr>
                                            }
                                        }

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@section script{
    <script src="~/Scripts/laypage/laypage.js"></script>
    <script src="~/Scripts/transparency.min.js"></script>
    <script type="text/javascript">
        function selectMyProject(obj, status) {
        }
        function doDelete(obj) {
            alert(obj);
        }

    </script>
}